<?php

class Core_Form_Admin_Settings_Mailtemplate_Edit extends Form
{

    protected function _init()
    {

        $this -> setName('form_settings_mailtemplate_edit') -> setTitle('mail template');

        $this -> addChild('@title', 'from_email', array(
            'label' => 'from email',
        ));

        $this -> addChild('@title', 'from_name', array(
            'label' => 'from name',
        ));

        $this -> addChild('@title', 'reply_email', array(
            'label' => 'reply mail',
        ));

        $this -> addChild('@title', 'reply_name', array(
            'label' => 'reply name',
        ));

        $this -> addChild('@radio', 'mail_format', array(
            'label' => 'mail format',
            'multiOptions' => array(
                'text' => 'text/plain',
                'html' => 'text/html',
            ),
            'value' => 'html',
        ));
        
        $this -> addChild('@radio', 'use_cron', array(
            'label' => 'use cron tab',
            'multiOptions' => array(
                'on' => 'yes',
                'off' => 'no',
            ),
            'value' => 'off',
        ));

        $this -> addChild('@title', 'mail_subject', array(
            'label' => 'mail subject',
        ));

        $this -> addChild('@textarea', 'mail_body', array(
            'label' => 'mail body',
        ));

        $this -> addChild('@group', 'buttons');

        $this -> buttons -> addChild('@submit', '_submit') -> addChild('@cancel', '_cancel');
    }

}
